package com.zscat.mallplus.center.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;

@Data
public class CenterCash implements Serializable  {

	@TableId(value = "id", type = IdType.AUTO)
	@Excel(name = "编号",width = 10)
	private Long id;
	
	@Excel(name = "用户ID",width = 10)
	private Long userId;
	
	@Excel(name = "昵称",width = 10)
	private String nickName;
	
	@Excel(name = "手机号",width = 10)
	private String phone;
	
	@Excel(name = "金额",width = 10)
	private BigDecimal money;
	
	@Excel(name = "开户行",width = 10)
	private String bankName;
	
	@Excel(name = "卡号",width = 10)
	private String bankCode;
	
	@Excel(name = "状态",width = 10)
	private Integer status;
	
	@Excel(name = "申请时间",width = 10)
    @TableField("create_time")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createTime;
	
	@Excel(name = "提现时间",width = 10)
    @TableField("update_time")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
	
	@Excel(name = "操作人",width = 10)
    private String updateBy;
	
	/**
	 * 每日开始时间
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@TableField(exist = false )
	private Date startTime;

	/**
	 * 每日结束时间
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@TableField(exist = false )
	private Date endTime;
}
